/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

import java.util.Date;
import javax.faces.bean.ManagedBean;
import javax.enterprise.context.RequestScoped;
import model.Control;
import model.Event;
import model.PregnancyControl;

/**
 *
 * @author Silvia
 */
@ManagedBean
@RequestScoped
public class newPregnancyControlBean {

    private Integer idAnimal;
    private Boolean result;
    private String controlComment; 
    private PregnancyControl newPregnancyControl;
    private Event newEvent;
    private Control newControl;

    public Control getNewControl() {
        return newControl;
    }

    public void setNewControl(Control newControl) {
        this.newControl.setControlComment(controlComment);
    }
    

    public Event getNewEvent() {
        return newEvent;
    }

    public void setNewEvent(Event newEvent) {
        this.newEvent.setAnimal(idAnimal);
    }

    public PregnancyControl getNewPregnancyControl() {
        return newPregnancyControl;
    }

    public void setNewPregnancyControl(PregnancyControl newPregnancyControl) {
        this.newPregnancyControl.setResult(result);
    }
    
    
    
    
    public String getControlComment() {
        return controlComment;
    }

    public void setControlComment(String controlComment) {
        this.controlComment = controlComment;
    }
    
    public Integer getIdAnimal() {
        return idAnimal;
    }

    public void setIdAnimal(Integer idAnimal) {
        this.idAnimal = idAnimal;
    }

    public Boolean getResult() {
        return result;
    }

    public void setResult(Boolean result) {
        this.result = result;
    }
    
}
